//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package ciicos.point.result;

import ciicos.base.Pagination;
import java.util.List;

public class ScadaPointPagination extends Pagination {
    private String name;
    private String desc;
    private String type;
    private List<ScadaNode> nodes;

    public String getName() {
        return this.name;
    }

    public String getDesc() {
        return this.desc;
    }

    public String getType() {
        return this.type;
    }

    public List<ScadaNode> getNodes() {
        return this.nodes;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setNodes(List<ScadaNode> nodes) {
        this.nodes = nodes;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof ScadaPointPagination)) {
            return false;
        } else {
            ScadaPointPagination other = (ScadaPointPagination)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$name = this.getName();
                Object other$name = other.getName();
                if (this$name == null) {
                    if (other$name != null) {
                        return false;
                    }
                } else if (!this$name.equals(other$name)) {
                    return false;
                }

                Object this$desc = this.getDesc();
                Object other$desc = other.getDesc();
                if (this$desc == null) {
                    if (other$desc != null) {
                        return false;
                    }
                } else if (!this$desc.equals(other$desc)) {
                    return false;
                }

                Object this$type = this.getType();
                Object other$type = other.getType();
                if (this$type == null) {
                    if (other$type != null) {
                        return false;
                    }
                } else if (!this$type.equals(other$type)) {
                    return false;
                }

                Object this$nodes = this.getNodes();
                Object other$nodes = other.getNodes();
                if (this$nodes == null) {
                    if (other$nodes != null) {
                        return false;
                    }
                } else if (!this$nodes.equals(other$nodes)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof ScadaPointPagination;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $name = this.getName();
        result = result * 59 + ($name == null ? 43 : $name.hashCode());
        Object $desc = this.getDesc();
        result = result * 59 + ($desc == null ? 43 : $desc.hashCode());
        Object $type = this.getType();
        result = result * 59 + ($type == null ? 43 : $type.hashCode());
        Object $nodes = this.getNodes();
        result = result * 59 + ($nodes == null ? 43 : $nodes.hashCode());
        return result;
    }

    public String toString() {
        return "ScadaPointPagination(name=" + this.getName() + ", desc=" + this.getDesc() + ", type=" + this.getType() + ", nodes=" + this.getNodes() + ")";
    }
}
